home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
misc
/
systemid.lha
/
SystemIdle
/
test.c
< prev
Wrap
C/C++ Source or Header
|
1995-10-11
|
346b
|
21 lines
extern unsigned long maximum,idle;
main()
{
int percent,n;
printf("Showing system usage for 25 seconds:\n");
if(init_idle())
{
for(n=0;n<25;n++)
{
percent=(int)((idle*100)/maximum);
printf(" %d percent free\n",percent);
Delay(50L);
}
free_idle();
}
}